/* Layout */
import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  children: [{
    // 默认路径,访问父路由/employees的时候,直接访问这个子路由
    path: '',
    name: 'employees',
    component: () => import('@/views/employees/index.vue'),
    meta: { title: '员工', icon: 'people' }
  }, {
    // path :'/xxx' 相对于根路径(协议,域名,端口号)
    // path : 'xxx' 相当于父路径
    path: 'detail/:id',
    component: () => import('@/views/employees/detail'),
    hidden: true,
    props: true
  },
  {
    // path :'/xxx' 相对于根路径(协议,域名,端口号)
    // path : 'xxx' 相当于父路径
    path: 'print/:id',
    component: () => import('@/views/employees/print.vue'),
    hidden: true,
    props: true
  }
  ]
}
